<div style="min-height:600px;">
    <div class='weui-flex'>
        <div class='weui-flex__item'>
            <div class="container">
                <div id="member-info" class='bc-info no-init' data-port='http://api.hongyanche.com/client/member_info'>
                    <div class='bc-info-template'>
                        <!--<div class='weui-cell'>-->
                            <!--<div class='weui-cell__hd'>-->
                                <!--<label class='weui-label'>-->
                                    <!--<i class='i i-cash'></i> 账户-->
                                <!--</label>-->
                            <!--</div>-->
                            <!--<div class='weui-cell__bd'>-->
                                <!--<h2 style='font-style: italic1;color:#666'>¥-->
                                    <!--<balance style='color:#maroon;' id='balance' info=f></balance>-->
                                <!--</h2>-->
                            <!--</div>-->
                            <!--&lt;!&ndash;<div class='weui-cell__ft' style='text-align: right;'>&ndash;&gt;-->
                                <!--&lt;!&ndash;<a class='weui-btn weui-btn_mini weui-btn_primary' href="#recharge"&ndash;&gt;-->
                                   <!--&lt;!&ndash;style='padding:20px;'>立即充值</a>&ndash;&gt;-->
                            <!--&lt;!&ndash;</div>&ndash;&gt;-->
                        <!--</div>-->
                        <div class='weui-cell'>
                            <div class='weui-cell__hd'>
                                <label class='weui-label'>
                                    <i class='i i-cash'></i> 积分
                                </label>
                            </div>
                            <div class='weui-cell__bd'>
                                <h2 style='font-style: italic1;color:#666'>
                                    <points style='color:maroon;' id='points'></points>
                                </h2>
                            </div>
                            <!--<div class='weui-cell__ft' style='text-align: right;'>-->
                                <!--<a class='weui-btn weui-btn_mini weui-btn_primary checkin' href="javascript:void (0)"-->
                                   <!--style='padding:20px;'>立即签到</a>-->
                            <!--</div>-->
                        </div>
                        <div class='weui-cell'>
                            <div class='weui-cell__hd'>
                                <label class='weui-label'>
                                    <i class='i i-crownfill'></i> 等级
                                </label>
                            </div>
                            <div class='weui-cell__bd'>
                                <h2 style='font-style: italic1;color:#666'>
                                    <empirical_value style='color:chocolate;' id='empirical_value'></empirical_value>
                                </h2>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div style='height: 50px'></div>
</div>

<script>
    (function (w, u) {
        $('#member-info').on('click','.checkin' ,function () {
            $.ajax({
                url: '/forum/sign',
                type: 'GET',
                xhrFields:{
                    withCredentials:true
                },
                success: function (data) {
                    if(data.state) {
                        TOAST.success("签到成功", ' ', 2);
                        INFO.reload('#member-info')
                    }else{
                        TOAST.warn(data.errormsg, ' ', 2);
                    }
                }
            })
        });

        $.ajax({
            url:"/client/member_info",
            type:'GET',
            xhrFields:{
                withCredentials:true
            },
            success:function (data) {
                if(data.state){
                    $('#balance').html(data.data.info.balance);
                    $('#empirical_value').html(data.data.info.empirical_value);
                    $('#points').html(data.data.info.points);
                }
            }
        })
    })(window, undefined)
</script>